import React, { Component } from 'react'

import { connect } from 'react-redux'

import { changeAsync } from '../store/actionCreator/profile'

@connect(
  null,
  dispatch => ({
    changeVisible() {
      dispatch(changeAsync())
    }
  })
)
class Profile extends Component {
  render() {
    return (
      <div>
        <button
          onClick={this.props.changeVisible}
        >show list</button>
      </div>
    )
  }
}

export default Profile